package com.cloud.order.config;

import java.util.Random;

/**
 * @author 陈楚城
 * @date 2019/9/30 16:42
 */
public class order {
    //随机生成订单号
    public static String getnumber() {
        String str = "0123456789";
        Random random = new Random();
        StringBuffer sb = new StringBuffer();
        for (int i = 0; i < 16; i++) {
            int number = random.nextInt(10);
            sb.append(str.charAt(number));
        }
        return sb.toString();
    }

}
